#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QString>
#include <QDialog>

#include "chatting_room.h"
#include "chatclient.h"

extern std::map<std::string, std::vector<std::string> > global_ip2msg;

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

//同步好友信息信号
signals:
   void getFriendMessages(QString,Chatting_room*);

//点击绑定的槽函数
private slots:
    void on_chatting_clicked();

    void on_offline_clicked();

private:
    Ui::MainWindow *ui;
     Chatting_room *dialog;
     ChatClient &chat_client;

};

#endif // MAINWINDOW_H
